package com.sgcc.operate.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sgcc.operate.mapper.OIndiDecoMapper;
import com.sgcc.operate.domain.OIndiDeco;
import com.sgcc.operate.service.IOIndiDecoService;

/**
 * 运营指标分解Service业务层处理
 * 
 * @author sgcc
 * @date 2021-03-23
 */
@Service
public class OIndiDecoServiceImpl implements IOIndiDecoService 
{
    @Autowired
    private OIndiDecoMapper oIndiDecoMapper;

    /**
     * 查询运营指标分解
     * 
     * @param id 运营指标分解ID
     * @return 运营指标分解
     */
    @Override
    public OIndiDeco selectOIndiDecoById(String id)
    {
        return oIndiDecoMapper.selectOIndiDecoById(id);
    }

    /**
     * 查询运营指标分解列表
     * 
     * @param oIndiDeco 运营指标分解
     * @return 运营指标分解
     */
    @Override
    public List<OIndiDeco> selectOIndiDecoList(OIndiDeco oIndiDeco)
    {
        return oIndiDecoMapper.selectOIndiDecoList(oIndiDeco);
    }

    /**
     * 新增运营指标分解
     * 
     * @param oIndiDeco 运营指标分解
     * @return 结果
     */
    @Override
    public int insertOIndiDeco(OIndiDeco oIndiDeco)
    {
        return oIndiDecoMapper.insertOIndiDeco(oIndiDeco);
    }

    /**
     * 修改运营指标分解
     * 
     * @param oIndiDeco 运营指标分解
     * @return 结果
     */
    @Override
    public int updateOIndiDeco(OIndiDeco oIndiDeco)
    {
        return oIndiDecoMapper.updateOIndiDeco(oIndiDeco);
    }

    /**
     * 批量删除运营指标分解
     * 
     * @param ids 需要删除的运营指标分解ID
     * @return 结果
     */
    @Override
    public int deleteOIndiDecoByIds(String[] ids)
    {
        return oIndiDecoMapper.deleteOIndiDecoByIds(ids);
    }

    /**
     * 删除运营指标分解信息
     * 
     * @param id 运营指标分解ID
     * @return 结果
     */
    @Override
    public int deleteOIndiDecoById(String id)
    {
        return oIndiDecoMapper.deleteOIndiDecoById(id);
    }
}
